package com.ruan.openfeign;

import com.ruan.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName:UserCenterOpenfeign
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/20 18:07
 **/
@FeignClient(value = "user-center",path = "/user",fallback = UserCenterOpenfeignFallBack.class)
public interface UserCenterOpenfeign {

    @RequestMapping("/getUserById/{id}")
    public User getUserById(@PathVariable(value = "id") Integer id);
}
